export const basicRoutes = [
    {
        name: 'ADMIN',
        path: '/admin',
        component: () => import('@/views/admin/AdminHome.vue'),
        isHidden: true,
        meta: {
            title: '登录',
        },
        children:[
            { 
                path: 'user', 
                component: () =>import('@/views/admin/user/User.vue') 
            },
            {
                path: 'brand',
                component: () =>import('@/views/admin/brand/Brand.vue'),
            },
            {
                path: 'vehicle',
                component: () =>import('@/views/admin/vehicle/Vehicle.vue'),
            },
            {
                path: 'goods',
                component: () =>import('@/views/admin/goods/RentalGoods.vue'),
            },
            {
                path: 'car',
                component: () =>import('@/views/admin/vehicle/Car.vue'),
            },
            {
                path: 'order',
                component: () =>import('@/views/admin/order/RentalOrder.vue'),
            },
            {
                path: 'returnCar',
                component: () =>import('@/views/admin/vehicle/ReturnCar.vue'),
            },
            {
                path: 'home',
                component: () =>import('@/views/admin/home/Index.vue'),
            }
          ],
    },
    {
        name: 'USER',
        path: '/',
        component: () => import('@/views/user/UserHome.vue'),
    },
    {
        name:'RENTAL',
        path: '/rental',
        component: () =>import('@/views/user/RentalCar.vue'),
    },
    {
        name:'CARDETAIL',
        path: '/carDetail/:type',
        component: () =>import('@/views/user/CarDetails.vue'),
    },
    {
        name:'ADDRENTAL',
        path: '/toAddRental/:type/:str/:id',
        component: () =>import('@/views/user/AddRentalOrder.vue'),
    },
    {
        name:'ME',
        path: '/me',
        component: () =>import('@/views/user/MeRentalOrder.vue'),
    },
    {
        name:'ORDERPAY',
        path: '/orderPay/:type',
        component: () =>import('@/views/user/OrderPay.vue'),
    },
    {
        name: 'LOGIN',
        path: '/login',
        component: () => import('@/views/Login.vue'),
    },
    {
        name: 'USERINFO',
        path: '/userInfo',
        component: () => import('@/views/user/UserInfo.vue'),
    }
]